// 抽离出来专门统一存放 影片相关接口的一个文件
import Axios from 'axios'
/**
 * 获取轮播图的接口
 * @param {Object} params 参数
 */
const getBannerList = params => {
  return Axios.get('https://m.maizuo.com/gateway', {
    params,
    headers: {
      'X-Client-Info':
        '{"a":"3000","ch":"1002","v":"5.0.4","e":"1575095471541165882348","bc":"440300"}',
      'X-Host': 'mall.cfg.common-banner'
    }
  })
}
const getBannerList2 = params => {
  return Axios.get('https://m.maizuo.com/gateway', {
    params,
    headers: {
      'X-Client-Info': '{"a":"3000","ch":"1002","v":"5.0.4","e":"1575098696614180324400","bc":"440300"}',
      'X-Host': 'mall.film-ticket.film.list'
    }
  })
}
// 普通暴露，可以在引用的时候使用结构赋值
export { getBannerList, getBannerList2 }
